package cn.kgc.spring01.entity;

import lombok.Data;

/**
 * @Author: 课工场
 * @Version: v1.0  2023/2/16
 * @Description:
 */
@Data
public class User {

    private String username;
    private Integer id;
    private String password;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public User(){
        System.out.println("user()");
    }

    public User(Integer id) {
        System.out.println("User(String username, Integer id)");
        this.username = username;
        this.id = id;
    }

    public User(String username, Integer id) {
        System.out.println("User(String username, Integer id)");
        this.username = username;
        this.id = id;
    }

    public User(String username, Integer id,String password) {
        System.out.println("User(String username, Integer id)");
        this.username = username;
        this.id = id;
        this.password = password;
    }
}
